import {createApp} from 'vue'
import '@/styles/index.css'
import App from './App.vue'
import naive from 'naive-ui'

import {createPinia} from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
import router from "@/router";


const app = createApp(App)

const meta = document.createElement('meta')

meta.name = 'naive-ui-style'

document.head.appendChild(meta)
app.use(naive)
    .use(router)
    .use(pinia)
    .mount('#app')
